package com.aaa.dao.impl;

import com.aaa.dao.BaseDao;
import com.aaa.dao.CardTypeDao;
import com.aaa.entity.CardType;

import java.util.List;

public class CardTypeDaoImpl implements CardTypeDao {
    private BaseDao baseDao  = BaseDao.getInstance();
    @Override
    public List<CardType> getAllCardType() {
        String sql = "select * from cardtype where status = 1";
        return baseDao.query(sql,null, CardType.class);
    }
}
